package com.gjy.nacos.server.rest;

import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

import javax.annotation.Resource;

/**
 * @author gjy
 * @version 1.0
 * @since 2025-03-08 17:09:00
 */
@Service
public class UserRest {

    @Resource
    private RestTemplate restTemplate;

    public Object find(Object req) {
        String url = "http://nacos-server/user/find";
        return restTemplate.postForObject(url, req, Object.class);
    }

}
